/* Modern Services Panel Styles - Black & White Theme */
.services-modern {
    padding: 80px 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.services-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    opacity: 1;
}

.services-modern .container {
    position: relative;
    z-index: 2;
}

.services-modern h2 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.services-modern h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
}

.services-subtitle {
    text-align: center;
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #000000;
    color: #ffffff;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    background: #000000;
    border: 2px solid #ffffff;
}

.service-icon i {
    font-size: 2.5rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: #ffffff;
    border: 2px solid #000000;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    color: #000000;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000000;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: #ffffff;
}

.service-description {
    color: #333333;
    line-height: 1.7;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-description {
    color: #ffffff;
}

/* Icon Colors - Pure Black and White Theme */
.service-card:nth-child(1) .service-icon,
.service-card:nth-child(2) .service-icon,
.service-card:nth-child(3) .service-icon,
.service-card:nth-child(4) .service-icon,
.service-card:nth-child(5) .service-icon,
.service-card:nth-child(6) .service-icon {
    background: #000000;
    border: 2px solid #ffffff;
}

.service-card:nth-child(1):hover .service-icon,
.service-card:nth-child(2):hover .service-icon,
.service-card:nth-child(3):hover .service-icon,
.service-card:nth-child(4):hover .service-icon,
.service-card:nth-child(5):hover .service-icon,
.service-card:nth-child(6):hover .service-icon {
    background: #ffffff;
    border: 2px solid #000000;
}

/* Animation Delays */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .services-modern {
        padding: 60px 0;
    }
    
    .services-modern h2 {
        font-size: 2.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .services-modern h2 {
        font-size: 1.8rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .service-card {
        padding: 25px 15px;
    }
}

/* Animation Classes */
.fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Section Text Color Overrides for Black Background */
.service h2,
.service .container h2 {
    color: #ffffff !important;
}

.service h4,
.service .row h4 {
    color: #ffffff !important;
}

.service p,
.service .sub-text {
    color: #ffffff !important;
}

.service i {
    color: #ffffff !important;
}

.service .container h2:before {
    border-color: transparent transparent #ffffff !important;
}

/* Override any inherited text colors in service section */
.service * {
    color: inherit;
}

/* Ensure service cards maintain their own styling */
.service .service-card h4,
.service .service-card p {
    color: inherit !important;
}
